import request from '@/utils/request'

// 查询停车卡退款列表
export function listParkingCardRefund(query) {
  return request({
    url: '/parking/parkingCardRefund/list',
    method: 'get',
    params: query
  })
}

// 查询停车卡退款详细
export function getParkingCardRefund(id) {
  return request({
    url: '/parking/parkingCardRefund/' + id,
    method: 'get'
  })
}

// 新增停车卡退款
export function addParkingCardRefund(data) {
  return request({
    url: '/parking/parkingCardRefund',
    method: 'post',
    data: data
  })
}

// 修改停车卡退款
export function updateParkingCardRefund(data) {
  return request({
    url: '/parking/parkingCardRefund',
    method: 'put',
    data: data
  })
}

// 删除停车卡退款
export function delParkingCardRefund(id) {
  return request({
    url: '/parking/parkingCardRefund/' + id,
    method: 'delete'
  })
}
